//
//  XHRPersonanHeaderView.m
//  快医
//
//  Created by 胥鸿儒 on 16/7/5.
//  Copyright © 2016年 xuhongru. All rights reserved.
//

#import "XHRPersonanHeaderView.h"

@interface XHRPersonanHeaderView()

/**记录是否登录*/
@property(nonatomic,assign)BOOL isLogin;

/**头像*/
@property(nonatomic,weak)UIImageView *iconView;
/**姓名Label*/
@property(nonatomic,weak)UILabel *nameLabel;
/**详细个人资料*/
@property(nonatomic,weak)UILabel *personalLabel;
@end

@implementation XHRPersonanHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
    }
    return self;
}
#pragma mark -
#pragma mark - 布局子控件
- (void)layoutSubviews
{
    [super layoutSubviews];
    
}
#pragma mark -
#pragma mark - lazy
- (UIImageView *)iconView
{
    if (!_iconView) {
        UIImageView *iconView = [[UIImageView alloc]init];
        _iconView = iconView;
        [self addSubview:iconView];
    }
    return _iconView;
}
- (UILabel *)nameLabel
{
    if (!_nameLabel) {
        UILabel *label = [[UILabel alloc]init];
        _nameLabel = label;
        label.textColor = [UIColor darkGrayColor];
        label.font = [UIFont systemFontOfSize:17];
        [self addSubview:label];
    }
    return _nameLabel;
}
- (UILabel *)personalLabel
{
    if (!_personalLabel) {
        UILabel *label = [[UILabel alloc]init];
        _personalLabel = label;
        label.textColor = [UIColor darkGrayColor];
        label.font = [UIFont systemFontOfSize:15];
        [self addSubview:label];;
        
    }
    return _personalLabel;
}
@end
